import { IsNumber, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class NodeFileDto {
  @ApiProperty({ description: '文件ID' })
  @IsNumber()
  readonly id: number;
  @ApiProperty({ description: '文件名称' })
  @IsString()
  readonly name: string;
  @ApiProperty({ description: '文件路径' })
  @IsString()
  readonly src: string;
  @ApiProperty({ description: '文件类型' })
  @IsString()
  readonly type: string;
}
